package a02demo2;

import java.io.File;

public class Test {
    public static void main(String[] args) {
        // D:\vscode\JavaScript\e
        File f = new File("D:\\vscode\\JavaScript");
        File[] files = f.listFiles();
        for (File file : files) {
            if (file.isFile() && file.getName().endsWith(".js")) {
                System.out.println(file);
            }
        }
    }
}
